/*
 * Buddy alloc function header file.
 *
 * Copyright (C) 2014 Ingenic Semiconductor Co.,Ltd
 * Author: Aeolus <weiqing.yan@ingenic.com>
 */

#ifndef __BUDDY_ALLOC_H__
#define __BUDDY_ALLOC_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

int buddy_init(void *base, int size);
void *buddy_alloc(int size);
void buddy_free(void *ptr);
void buddy_dump();

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __BUDDY_ALLOC_H__ */
